package com.dev.common.entity;

import java.io.Serializable;

/**
 * 分页
 * 
 * @Description
 * @author Shiwen .Li
 * @date 2016年8月18日 下午9:47:07
 * @version V1.3.1
 */
public class PageEntity implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private int number;//当前页面
	
	private int offset=0;// 数据偏移
	
	private int limit=10;// 分页大小
	
	private String order;// 升序降序
	
	private String search; // 搜索关键字
	
	private String sort;// 排序字段

	public int getLimit() {
		return limit;
	}
	
	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}


	public static long getSerialversionuid() {
		return serialVersionUID;
	}



	public void setLimit(int limit) {
		this.limit = limit;
	}

	public int getOffset() {
		return offset;
	}

	public void setOffset(int offset) {
		this.offset = offset;
		this.number=(offset+this.limit)/this.limit;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public String getSearch() {
		return search;
	}

	public void setSearch(String search) {
		this.search = search;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

}
